using System.Collections.Generic;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
using Yoozoo.Manager;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class CheckNpcLostLockTargetTime : AIConditionBaseNode
    {
        public BBParameter<float> duration = 5f;

        protected override bool OnCheck()
        {
            bool result = Time.time >= _entity.battleAgent.lostLockTargetTimestamp + duration.value;
            // if (result)
            // {
            //     if (_entity.data.npcAIModel == NpcAIModel.HandGun)
            //     {
            //         EventTracingManager.GetInstance().ClientRoleBehavior("{\"log_type\": \"玩法行为\", \"b_type\": \"GTA世界\", \"b_value\": \"攻击NPC\", \"extra_3\": \"手枪\", \"extra_4\": \"脱战\"}");
            //     }
            //     else
            //     {
            //         EventTracingManager.GetInstance().ClientRoleBehavior("{\"log_type\": \"玩法行为\", \"b_type\": \"GTA世界\", \"b_value\": \"攻击NPC\", \"extra_3\": \"拳头\", \"extra_4\": \"脱战\"}");
            //     }
            // }
            return result;
        }
    }
}